package aliyun.cx.admin.dto;

import java.time.LocalDateTime;

/**
 * 评论查询条件DTO
 */
public class CommentQueryDTO {
    
    private Integer page = 1;
    private Integer size = 10;
    private Long userId;
    private Long articleId;
    private Long parentId;
    private String content;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private String sortField = "createTime";
    private String sortOrder = "desc";
    
    // 构造函数
    public CommentQueryDTO() {}
    
    public CommentQueryDTO(Integer page, Integer size) {
        this.page = page;
        this.size = size;
    }
    
    // Getters and Setters
    public Integer getPage() {
        return page;
    }
    
    public void setPage(Integer page) {
        this.page = page;
    }
    
    public Integer getSize() {
        return size;
    }
    
    public void setSize(Integer size) {
        this.size = size;
    }
    
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public Long getArticleId() {
        return articleId;
    }
    
    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }
    
    public Long getParentId() {
        return parentId;
    }
    
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public LocalDateTime getStartTime() {
        return startTime;
    }
    
    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }
    
    public LocalDateTime getEndTime() {
        return endTime;
    }
    
    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
    
    public String getSortField() {
        return sortField;
    }
    
    public void setSortField(String sortField) {
        this.sortField = sortField;
    }
    
    public String getSortOrder() {
        return sortOrder;
    }
    
    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }
    
    @Override
    public String toString() {
        return "CommentQueryDTO{" +
                "page=" + page +
                ", size=" + size +
                ", userId=" + userId +
                ", articleId=" + articleId +
                ", parentId=" + parentId +
                ", content='" + content + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", sortField='" + sortField + '\'' +
                ", sortOrder='" + sortOrder + '\'' +
                '}';
    }
}
